home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"> <xsl:output method="html"/> <xsl:template match = "/"> <p>Here are the courses the selected term. To register for a course please click the 'View Sections' link. You will then be presented with a list of available sections for this course, and you will have the opportunity to add this course to your schedule.</p> <table width="100%"> <tr> <td bgcolor="black" width="10%"> <font color="white"><center><b>Course Number</b></center></font> </td> <td bgcolor="black" width=""> <font color="white"><center><b>Faculty Name</b></center></font> </td> <td bgcolor="black" width="20%"> <font color="black"><center><b> . </b></center></font> </td> </tr> <xsl:apply-templates select = "//rs:data"/> <tr> <td colspan="3" bgcolor="black"> <font color="black">.</font> </td> </tr> </table> </xsl:template> <xsl:template match = "//rs:data"> <xsl:for-each select="z:row"> <xsl:choose> <xsl:when test="position() mod 2 = 1"> <tr> <td bgcolor="white" width="20%" align="center"><xsl:text></xsl:text> <xsl:value-of select="@COURSE"/> </td> <td bgcolor="white" width="50%" align="LEFT"><xsl:text></xsl:text> <xsl:value-of select="@FACULTY"/> </td> <td bgcolor="white" width="30%" align="center"> <a> <xsl:attribute name="href">ViewSections.asp?ABBREVIATION=<xsl:value-of select="@ABREVIATION"/>&LONGNAME=<xsl:value-of select="translate(@LONGNAME, ' ', '+')"/>&DYEAR=<xsl:value-of select="@DYEAR"/>&strRealTerm=<xsl:value-of select="@strRealTerm"/>&COURSE=<xsl:value-of select="@COURSE"/>&DEPARTMENT=<xsl:value-of select="@DEPARTMENT"/>&NAME=<xsl:value-of select="translate(@NAME, ' ', '+')"/></xsl:attribute> View Sections </a> </td> </tr> </xsl:when> <xsl:otherwise> <tr> <td bgcolor="#E2E2E2" width="" align="center"><xsl:text></xsl:text> <xsl:value-of select="@COURSE"/> </td> <td bgcolor="#E2E2E2" width="" align="LEFT"><xsl:text></xsl:text> <xsl:value-of select="@FACULTY"/> </td> <td bgcolor="#E2E2E2" width="" align="center"> <a> <xsl:attribute name="href">ViewSections.asp?ABBREVIATION=<xsl:value-of select="@ABREVIATION"/>&LONGNAME=<xsl:value-of select="translate(@LONGNAME, ' ', '+')"/>&DYEAR=<xsl:value-of select="@DYEAR"/>&strRealTerm=<xsl:value-of select="@strRealTerm"/>&COURSE=<xsl:value-of select="@COURSE"/>&DEPARTMENT=<xsl:value-of select="@DEPARTMENT"/>&NAME=<xsl:value-of select="translate(@NAME, ' ', '+')"/></xsl:attribute> View Sections </a> </td> </tr> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> </xsl:stylesheet>